import httpReqeust from "@/api/config";

const model = "/core/roles/";

// 分页查询
export const page = (data) => {
  return httpReqeust.post(model + "page", data);
};

// 删除
export const delById = (id) => {
  return httpReqeust.get(model + "delete?id=" + id);
};

// 根据id查询
export const getById = (id) => {
  return httpReqeust.get(model + "getById?id=" + id);
};

// 更新和删除
export const addOrUpdate = (data) => {
  return httpReqeust.post(model + "addOrUpdate", data);
};
